/* execle()执行ls命令 */
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>

extern char **environ;

int main(int argc, char *argv[])
{
	execle("/bin/ls", "ls", "-a", "-al", NULL, environ);
	perror("execle error");
	exit(-1);

}
